import { getArgs } from "./util.js"
import { createProject } from "./contain.js"
import startQA from "./create-inquir.js"

// 1) 获取参数
const ARGUMENTS = getArgs()
process.env.__CREATE_NAME__ = ARGUMENTS[0];

// 2) 初始化项目
async function init() {
  try {
    const ANSWERS = await startQA()
    createProject(ANSWERS as any)
  } catch (error) {
  }
}
init()